package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "PageContentSaveDTO", description = "")
public class PageContentSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 100, message = "长度不能超过100")
    private String title;
    @ApiModelProperty(value = "")
    @NotEmpty(message = "不能为空")
    @Length(max = 16777215, message = "长度不能超过16,777,215")
    private String content;
    /**
     * 1商家入驻协议2注册协议3用户须知4-达人介绍
     */
    @ApiModelProperty(value = "1商家入驻协议2注册协议3用户须知4-达人介绍")
    private Integer type;

}
